import os
basedir = os.path.abspath(os.path.dirname(__file__))

BASEDIR = basedir
CSRF_ENABLED = True
SECRET_KEY = 'jianyi_binance_secret_key'

SQLALCHEMY_DATABASE_URI = ('sqlite:///' +
                           os.path.join(basedir, 'trading.sqlite'))
SQLITE_DATABASE_URI = "/trading.sqlite"
SQLALCHEMY_TRACK_MODIFICATIONS = True
RECORDS_PER_PAGE = 20
UPLOAD_FOLDER = os.path.join(basedir, 'upload_files')
#只允许上传excel文件
ALLOWED_EXTENSIONS = set(['xlsx', 'xls'])

#币种设置
SYMBOL_COUNT = 5
SYMBOL_STRING0 = 'EOS/ETH'
SYMBOL0 = 'EOSETH'
PRICE_MULTI0 = 6
VOL_MULTI0 = 2
SYMBOL_STRING1 = 'TRX/ETH'
SYMBOL1 = 'TRXETH'
PRICE_MULTI1 = 8
VOL_MULTI1 = 0
SYMBOL_STRING2 = 'NEO/ETH'
SYMBOL2 = 'NEOETH'
PRICE_MULTI2 = 6
VOL_MULTI2 = 2
SYMBOL_STRING3 = 'ETH/BTC'
SYMBOL3 = 'ETHBTC'
PRICE_MULTI3 = 6
VOL_MULTI3 = 3
SYMBOL_STRING4 = 'TRX/BTC'
SYMBOL4 = 'TRXBTC'
PRICE_MULTI4 = 8
VOL_MULTI4 = 0

